<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width,initial-scale=1.0,
		maximum-scale=1.0, user-scalable=no" />
		<title>设备设置</title>
		<link rel="stylesheet" type="text/css" href="css/app.css" />
		<script src="js/jquery.min.js"></script>
		<script src="js/vue.min.js"></script>
	</head>
	<body>
		<div class="jiantou">
			设备信息
		</div>
		<div id="cmm9801">

			<div class="main_text">
				<ul>
					<li>设备型号：QKD9801</li>
					<li>生产商：重庆鲲量科技有限公司</li>
					<li>软件版本：v1.0</li>
				</ul>
			</div>
			<div>
				<a href="main.html">
					<p>返回</p>
				</a>
			</div>
		</div>
		<!-- 下面图标 -->
		<!-- <ul class="tubiao">
			<a href="javascript:;">
				<li class="z1"></li>
			</a>
			<a href="javascript:;">
				<li class="z2"></li>
			</a>
			<a href="javascript:;">
				<li class="z3"></li>
			</a>
			<a href="javascript:;">
				<li class="z4"></li>
			</a>
		</ul> -->

		<script type="text/javascript">
			var vm = new Vue({
				el: '#cmm9801',
				data: {
					device: {
						localIp: "",
						targetIp: "",
						runTime: 0,
						currentKeyPool: 0,
						useableKeyPool: 0
					}
				},
				methods: {
					loadInfo: function() {
						$.ajax({
							url: 'cgi-bin/cmm9801.cgi',
							dataType: 'json',
							data: {
								optype: "sbxx_load"
							},
							success: function(result) {
								if (result.login == 'false') {
									sessionStorage.setItem('isLogin', 'false');
									parent.location = 'index.html';
									return;
								}
								vm.device = result;
							}
						});
					}
				},
				created: function() {
					var isLogin = sessionStorage.getItem("isLogin");
					if (isLogin != 'true') {
						window.location.href = "index.html";
						return;
					}
					//this.loadInfo();
				}
			});
		</script>
	</body>
</html>
